#include"../Common/es.hpp"


int main(int argc,char* argv[])
{
    //google::ParseCommandLineFlags(&argc,&argv,true);
    init_logger(0,"",(spdlog::level::level_enum)0);
    std::vector<std::string> host_list = {"http://127.0.0.1:9200/"}; 
    std::shared_ptr<elasticlient::Client> client(new elasticlient::Client(host_list));
    //ESSearch(client,"test2").append_must_not_terms("nickname",{"zz"}).search();
    //ESIndex(client,"test3","doc").append("nickname").append("user_id","keyword","standard")
    //.append("avatar_id","keyword","ik_max_word",false).create("test_id1");
    //ESIndex(client,"test1","_doc").append("t_id","text","standard").create("test_id2");
     //ESInsert(client,"test1").append("nickname","zhangsan").append("user_id","zzy113")
    //.append("avatar_id","1131").append("t_i","tttttt").insert();
    //ESSearch(client,"test3").append_must_not_terms("nickname",{"zz"}).search();
    //ESRomove(client,"test1").remove("znD8K5QBFwPbDwN2ZQMi");
    //ESRomove(client,"test2").remove("default_index_id");
    //ESRomove(client,"test1").remove("z3D-K5QBFwPbDwN2nAPw");
    //ESRomove(client,"test3").remove("test_id1");

    return 0;
}